package com.zuihai.app.mvp.model.entity;

import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/5/16 0016.
 */

public class ReleaseShuoshuoContent implements Parcelable {
    public String inputStr;
    public String imagePath;
    public String base64Picture;
    public int width;
    public int height;

    @Override

    public String toString() {
        return "EditData{" +
                "inputStr='" + inputStr + '\'' +
                ", imagePath='" + imagePath + '\'' +
                ", bitmap=" + base64Picture +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.inputStr);
        dest.writeString(this.imagePath);
        dest.writeString(this.base64Picture);
        dest.writeInt(this.height);
        dest.writeInt(this.width);
    }

    public ReleaseShuoshuoContent() {
    }

    protected ReleaseShuoshuoContent(Parcel in) {
        this.width=in.readInt();
        this.height=in.readInt();
        this.inputStr = in.readString();
        this.imagePath = in.readString();
        this.base64Picture = in.readParcelable(Bitmap.class.getClassLoader());
    }

    public static final Creator<ReleaseShuoshuoContent> CREATOR = new Creator<ReleaseShuoshuoContent>() {
        @Override
        public ReleaseShuoshuoContent createFromParcel(Parcel source) {
            return new ReleaseShuoshuoContent(source);
        }

        @Override
        public ReleaseShuoshuoContent[] newArray(int size) {
            return new ReleaseShuoshuoContent[size];
        }
    };
}
